Platform Explorer / Nuxeo Platform 2021.56

Contribution org.nuxeo.ecm.platform.actions--filters

This contribution is part of XML component org.nuxeo.ecm.platform.actions inside nuxeo-platform-webapp-core-2021.56.5.jar /OSGI-INF/actions-contrib.xml

Extension Point

Extension point filters of component ActionService.

Registration Order

18
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <filter id="view">
          <rule grant="false">
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="create">
          <rule grant="true">
            <permission>AddChildren</permission>
            <facet>Folderish</facet>
            <type>Workspace</type>
            <type>TemplateRoot</type>
            <type>Section</type>
            <type>Folder</type>
            <type>OrderedFolder</type>
          </rule>
          <rule grant="false">
            <condition>
              #{typeManager.getAllowedSubTypes(document.getType(),document).size()==0}
            </condition>
          </rule>
        </filter>
  • <filter id="importFile">
          <rule grant="true">
            <permission>AddChildren</permission>
            <facet>Folderish</facet>
            <type>Workspace</type>
            <type>Folder</type>
            <type>OrderedFolder</type>
            <condition>
              #{typeManager.getAllowedSubTypes(document.getType(),
              document).size()
              &gt; 0}
            </condition>
          </rule>
        </filter>
  • <filter id="edit">
          <rule grant="false">
            <type>Root</type>
            <type>Domain</type>
            <type>WorkspaceRoot</type>
            <type>Workspace</type>
          </rule>
          <rule grant="true">
            <permission>Write</permission>
          </rule>
        </filter>
  • <filter id="user_canedit">
          <rule grant="true">
            <permission>Write</permission>
          </rule>
        </filter>
  • <filter id="workspace_edit">
          <rule grant="true">
            <type>Domain</type>
            <type>WorkspaceRoot</type>
            <type>Workspace</type>
            <permission>Write</permission>
          </rule>
        </filter>
  • <filter id="metadata_edit">
          <rule grant="false">
            <type>Root</type>
          </rule>
          <rule grant="true">
            <permission>Write</permission>
          </rule>
        </filter>
  • <filter id="cannotEdit">
          <rule grant="false">
            <type>Root</type>
          </rule>
          <rule grant="false">
            <condition>!document.isProxy()</condition>
            <permission>Write</permission>
          </rule>
          <rule grant="false">
            <condition>!document.isProxy()</condition>
            <permission>Manage everything</permission>
          </rule>
        </filter>
  • <filter id="anonymous">
          <rule grant="true">
            <condition>#{currentUser.anonymous}</condition>
          </rule>
        </filter>
  • <filter id="not_anonymous">
          <rule grant="false">
            <condition>#{currentUser.anonymous}</condition>
          </rule>
        </filter>
  • <filter id="not_transient_user">
          <rule grant="false">
            <condition>#{currentUser.transient}</condition>
          </rule>
        </filter>
  • <filter id="view_content">
          <rule grant="true">
            <permission>ReadChildren</permission>
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="valid_for_publish">
          <rule grant="true">
            <condition>
              document.getCurrentLifeCycleState().equals("approved")
            </condition>
          </rule>
        </filter>
  • <filter id="manage">
          <rule grant="true">
            <permission>Manage everything</permission>
          </rule>
        </filter>
  • <filter id="not_review_documents">
          <rule grant="false">
            <condition>
              document.getCurrentLifeCycleState().equals("review")
            </condition>
          </rule>
        </filter>
  • <filter id="mutable_document">
          <rule grant="false">
            <facet>Immutable</facet>
          </rule>
          <rule grant="false">
            <type>Root</type>
          </rule>
          <rule grant="false">
            <condition>
              document.isTrashed()
            </condition>
          </rule>
        </filter>
  • <filter id="updatable_main_blob">
          <rule grant="true">
            <condition>#{documentActions.canUpdateMainBlob}</condition>
          </rule>
        </filter>
  • <filter id="delete_content">
          <rule grant="true">
            <permission>RemoveChildren</permission>
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="rights">
          <rule grant="true">
            <permission>WriteSecurity</permission>
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="currentWorkListIsNotEmpty">
          <rule grant="false">
            <condition>#{clipboardActions.workListEmpty}</condition>
          </rule>
        </filter>
  • <filter id="canPasteCurrentWorkList">
          <rule grant="true">
            <condition>#{clipboardActions.canPasteWorkList}</condition>
          </rule>
        </filter>
  • <filter id="canMoveWorkingList">
          <rule grant="true">
            <condition>#{clipboardActions.canMoveWorkingList}</condition>
          </rule>
        </filter>
  • <filter id="canCopyFromCurrentSelection">
          <rule grant="true">
            <condition>#{clipboardActions.canCopy}</condition>
          </rule>
        </filter>
  • <filter id="canEditCurrentSelection">
          <rule grant="true">
            <condition>#{bulkEditActions.canEdit}</condition>
          </rule>
        </filter>
  • <filter id="can_lock">
          <rule grant="true">
            <permission>Write</permission>
            <condition>#{lockActions.canLockCurrentDoc}</condition>
          </rule>
          <rule grant="false">
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="can_unlock">
          <rule grant="true">
            <condition>#{lockActions.canUnlockCurrentDoc}</condition>
          </rule>
          <rule grant="false">
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="only_for_manager">
          <rule grant="true">
            <condition>#{userSession.administrator}</condition>
          </rule>
        </filter>
  • <filter id="hasAttachedFiles">
          <rule grant="true">
            <schema>files</schema>
          </rule>
        </filter>
  • <filter id="type_section">
          <rule grant="false">
            <type>Section</type>
          </rule>
        </filter>
  • <filter id="denyFilesTab">
          <rule grant="false">
            <type>WebSite</type>
            <type>WebPage</type>
            <type>BlogSite</type>
            <type>BlogPost</type>
          </rule>
        </filter>
  • <filter id="inSection">
          <rule grant="true">
            <type>Section</type>
            <type>SectionRoot</type>
          </rule>
        </filter>
  • <filter id="outSection">
          <rule grant="false">
            <type>Section</type>
            <type>SectionRoot</type>
          </rule>
        </filter>
  • <filter id="not_readonly">
          <rule grant="true">
            <condition>#{notReadOnly}</condition>
          </rule>
        </filter>
  • <filter id="orderable">
          <rule grant="true">
            <facet>Orderable</facet>
          </rule>
        </filter>
  • <filter id="not_orderable">
          <rule grant="false">
            <facet>Orderable</facet>
          </rule>
        </filter>
  • <filter id="canMoveToTop">
          <rule grant="true">
            <condition>#{orderableDocumentActions.canMoveToTop}</condition>
            <facet>Orderable</facet>
          </rule>
        </filter>
  • <filter id="canMoveUp">
          <rule grant="true">
            <condition>#{orderableDocumentActions.canMoveUp}</condition>
            <facet>Orderable</facet>
          </rule>
        </filter>
  • <filter id="canMoveDown">
          <rule grant="true">
            <condition>#{orderableDocumentActions.canMoveDown}</condition>
            <facet>Orderable</facet>
          </rule>
        </filter>
  • <filter id="canMoveToBottom">
          <rule grant="true">
            <condition>#{orderableDocumentActions.canMoveToBottom}</condition>
            <facet>Orderable</facet>
          </rule>
        </filter>
  • <filter id="has_local_configuration_available">
          <rule grant="false">
            <condition>
              #{webActions.getActionsList('LOCAL_CONFIGURATION').isEmpty()}
            </condition>
          </rule>
          <rule grant="true">
            <permission>Manage everything</permission>
            <facet>SuperSpace</facet>
          </rule>
        </filter>
  • <filter id="is_creating_workspace">
          <rule grant="true">
            <condition>#{changeableDocument.type == 'Workspace'}</condition>
          </rule>
        </filter>
  • <filter id="is_not_creating_workspace">
          <rule grant="false">
            <condition>#{changeableDocument.type == 'Workspace'}</condition>
          </rule>
        </filter>
  • <filter id="is_le_create_msword">
          <rule grant="true">
            <condition>#{msword_liveeditable}</condition>
          </rule>
        </filter>
  • <filter id="is_le_create_msexcel">
          <rule grant="true">
            <condition>#{msexcel_liveeditable}</condition>
          </rule>
        </filter>
  • <filter id="is_le_create_mspowerpoint">
          <rule grant="true">
            <condition>#{mspowerpoint_liveeditable}</condition>
          </rule>
        </filter>
  • <filter id="is_le_create_odwriter">
          <rule grant="true">
            <condition>#{ootext_liveeditable}</condition>
          </rule>
        </filter>
  • <filter id="is_le_create_odcalc">
          <rule grant="true">
            <condition>#{oocalc_liveeditable}</condition>
          </rule>
        </filter>
  • <filter id="is_le_create_odimpress">
          <rule grant="true">
            <condition>#{oopresentation_liveeditable}</condition>
          </rule>
        </filter>

XML Source

<extension point="filters" target="org.nuxeo.ecm.platform.actions.ActionService">

    <filter id="view">
      <rule grant="false">
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="create">
      <rule grant="true">
        <permission>AddChildren</permission>
        <facet>Folderish</facet>
        <type>Workspace</type>
        <type>TemplateRoot</type>
        <type>Section</type>
        <type>Folder</type>
        <type>OrderedFolder</type>
      </rule>
      <rule grant="false">
        <condition>
          #{typeManager.getAllowedSubTypes(document.getType(),document).size()==0}
        </condition>
      </rule>
    </filter>

    <filter id="importFile">
      <rule grant="true">
        <permission>AddChildren</permission>
        <facet>Folderish</facet>
        <type>Workspace</type>
        <type>Folder</type>
        <type>OrderedFolder</type>
        <condition>
          #{typeManager.getAllowedSubTypes(document.getType(),
          document).size()
          &gt; 0}
        </condition>
      </rule>
    </filter>

    <filter id="edit">
      <rule grant="false">
        <type>Root</type>
        <type>Domain</type>
        <type>WorkspaceRoot</type>
        <type>Workspace</type>
      </rule>
      <rule grant="true">
        <permission>Write</permission>
      </rule>
    </filter>

    <filter id="user_canedit">
      <rule grant="true">
        <permission>Write</permission>
      </rule>
    </filter>

    <filter id="workspace_edit">
      <rule grant="true">
        <type>Domain</type>
        <type>WorkspaceRoot</type>
        <type>Workspace</type>
        <permission>Write</permission>
      </rule>
    </filter>

    <filter id="metadata_edit">
      <rule grant="false">
        <type>Root</type>
      </rule>
      <rule grant="true">
        <permission>Write</permission>
      </rule>
    </filter>

    <!-- deprecated, use mutable_document instead -->
    <filter id="cannotEdit">
      <rule grant="false">
        <type>Root</type>
      </rule>
      <rule grant="false">
        <condition>!document.isProxy()</condition>
        <permission>Write</permission>
      </rule>
      <rule grant="false">
        <condition>!document.isProxy()</condition>
        <permission>Manage everything</permission>
      </rule>
    </filter>

    <filter id="anonymous">
      <rule grant="true">
        <condition>#{currentUser.anonymous}</condition>
      </rule>
    </filter>

    <filter id="not_anonymous">
      <rule grant="false">
        <condition>#{currentUser.anonymous}</condition>
      </rule>
    </filter>

    <filter id="not_transient_user">
      <rule grant="false">
        <condition>#{currentUser.transient}</condition>
      </rule>
    </filter>

    <filter id="view_content">
      <rule grant="true">
        <permission>ReadChildren</permission>
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="valid_for_publish">
      <rule grant="true">
        <condition>
          document.getCurrentLifeCycleState().equals("approved")
        </condition>
      </rule>
    </filter>

    <filter id="manage">
      <rule grant="true">
        <permission>Manage everything</permission>
      </rule>
    </filter>

    <filter id="not_review_documents">
      <rule grant="false">
        <condition>
          document.getCurrentLifeCycleState().equals("review")
        </condition>
      </rule>
    </filter>

    <filter id="mutable_document">
      <rule grant="false">
        <facet>Immutable</facet>
      </rule>
      <rule grant="false">
        <type>Root</type>
      </rule>
      <rule grant="false">
        <condition>
          document.isTrashed()
        </condition>
      </rule>
    </filter>

    <filter id="updatable_main_blob">
      <rule grant="true">
        <condition>#{documentActions.canUpdateMainBlob}</condition>
      </rule>
    </filter>

    <filter id="delete_content">
      <rule grant="true">
        <permission>RemoveChildren</permission>
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="rights">
      <rule grant="true">
        <permission>WriteSecurity</permission>
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="currentWorkListIsNotEmpty">
      <rule grant="false">
        <condition>#{clipboardActions.workListEmpty}</condition>
      </rule>
    </filter>

    <filter id="canPasteCurrentWorkList">
      <rule grant="true">
        <condition>#{clipboardActions.canPasteWorkList}</condition>
      </rule>
    </filter>

    <filter id="canMoveWorkingList">
      <rule grant="true">
        <condition>#{clipboardActions.canMoveWorkingList}</condition>
      </rule>
    </filter>

    <filter id="canCopyFromCurrentSelection">
      <rule grant="true">
        <condition>#{clipboardActions.canCopy}</condition>
      </rule>
    </filter>

    <filter id="canEditCurrentSelection">
      <rule grant="true">
        <condition>#{bulkEditActions.canEdit}</condition>
      </rule>
    </filter>

    <filter id="can_lock">
      <rule grant="true">
        <permission>Write</permission>
        <condition>#{lockActions.canLockCurrentDoc}</condition>
      </rule>
      <rule grant="false">
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="can_unlock">
      <rule grant="true">
        <condition>#{lockActions.canUnlockCurrentDoc}</condition>
      </rule>
      <rule grant="false">
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="only_for_manager">
      <rule grant="true">
        <condition>#{userSession.administrator}</condition>
      </rule>
    </filter>

    <filter id="hasAttachedFiles">
      <rule grant="true">
        <schema>files</schema>
      </rule>
    </filter>

    <filter id="type_section">
      <rule grant="false">
        <type>Section</type>
      </rule>
    </filter>

    <filter id="denyFilesTab">
      <rule grant="false">
        <type>WebSite</type>
        <type>WebPage</type>
        <type>BlogSite</type>
        <type>BlogPost</type>
      </rule>
    </filter>

    <filter id="inSection">
      <rule grant="true">
        <type>Section</type>
        <type>SectionRoot</type>
      </rule>
    </filter>

    <filter id="outSection">
      <rule grant="false">
        <type>Section</type>
        <type>SectionRoot</type>
      </rule>
    </filter>

    <filter id="not_readonly">
      <rule grant="true">
        <condition>#{notReadOnly}</condition>
      </rule>
    </filter>

    <filter id="orderable">
      <rule grant="true">
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="not_orderable">
      <rule grant="false">
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="canMoveToTop">
      <rule grant="true">
        <condition>#{orderableDocumentActions.canMoveToTop}</condition>
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="canMoveUp">
      <rule grant="true">
        <condition>#{orderableDocumentActions.canMoveUp}</condition>
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="canMoveDown">
      <rule grant="true">
        <condition>#{orderableDocumentActions.canMoveDown}</condition>
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="canMoveToBottom">
      <rule grant="true">
        <condition>#{orderableDocumentActions.canMoveToBottom}</condition>
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="has_local_configuration_available">
      <rule grant="false">
        <condition>
          #{webActions.getActionsList('LOCAL_CONFIGURATION').isEmpty()}
        </condition>
      </rule>
      <rule grant="true">
        <permission>Manage everything</permission>
        <facet>SuperSpace</facet>
      </rule>
    </filter>

    <filter id="is_creating_workspace">
      <rule grant="true">
        <condition>#{changeableDocument.type == 'Workspace'}</condition>
      </rule>
    </filter>

    <filter id="is_not_creating_workspace">
      <rule grant="false">
        <condition>#{changeableDocument.type == 'Workspace'}</condition>
      </rule>
    </filter>

    <!-- LiveEdit filter -->
    <filter id="is_le_create_msword">
      <rule grant="true">
        <condition>#{msword_liveeditable}</condition>
      </rule>
    </filter>

    <filter id="is_le_create_msexcel">
      <rule grant="true">
        <condition>#{msexcel_liveeditable}</condition>
      </rule>
    </filter>

    <filter id="is_le_create_mspowerpoint">
      <rule grant="true">
        <condition>#{mspowerpoint_liveeditable}</condition>
      </rule>
    </filter>

    <filter id="is_le_create_odwriter">
      <rule grant="true">
        <condition>#{ootext_liveeditable}</condition>
      </rule>
    </filter>

    <filter id="is_le_create_odcalc">
      <rule grant="true">
        <condition>#{oocalc_liveeditable}</condition>
      </rule>
    </filter>

    <filter id="is_le_create_odimpress">
      <rule grant="true">
        <condition>#{oopresentation_liveeditable}</condition>
      </rule>
    </filter>

  </extension>